#ifndef CUSTOMTABLE_H
#define CUSTOMTABLE_H

#include <FL/Fl_Table.H>
#include <vector>
#include <string>

class CustomTable : public Fl_Table {
public:
	CustomTable(int X, int Y, int W, int H, const char* L = 0);
	void set_data(const std::vector<std::vector<std::string>>& d);

protected:
	void draw_cell(TableContext context, int R, int C, int X, int Y, int W, int H) override;

private:
	std::vector<std::vector<std::string>> data;
};

#endif // CUSTOMTABLE_H#pragma once
